import { View, Text, Image } from "@tarojs/components";
import { iconRightCircle } from "../../../../assets/files";
import "./index.scss";

export default function YyItem(props) {
  const { title, img, click,bgColor,auditNum } = props;
  return (
    <View className="titWrap" style={{backgroundColor:bgColor || '#fff'}} onClick={click}>
      <Image className="imgSty" src={img} />
      <Text className="yyTit">{title}</Text>

      {
            auditNum > 0 &&
            <View className="shtip">
              <Text>{auditNum}</Text>
            </View>
          }
    </View>
  );
}
